package com.vanke.devops.api.controller.zuulroute.form;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

/**
 * @author 陈景阳
 * @since 2018/6/1
 */
@Getter
@Setter
public class ZuulRouteForm {

    @NotEmpty(message = "host不能为空")
    private String host;

    @NotEmpty(message = "location不能为空")
    private String location;

    @NotEmpty(message = "path不能为空")
    private String path;

    private String serviceName;

    private String url;

    private String contextPath;

    @NotNull(message = "sort不能为空")
    private Integer sort;
}
